package fr.expdev.bndd;

import java.util.ArrayList;
import java.util.List;

import fr.expdev.bndd.data.Post;

public class AppContext {
	
	public List<Post> posts;
	
	private AppContext() {
		posts = new ArrayList<Post>();
	}

	/****************************
	 * Singleton                *
	 ****************************/
	
	private static AppContext _instance;
	
	public static AppContext getAppContext() {
		if (AppContext._instance == null) {
			AppContext._instance = new AppContext();
		}
		
		return AppContext._instance;
	}
	
}	